import { Module, NestModule, MiddlewareConsumer } from '@nestjs/common';
import { NewsController } from './news/news.controller';
import { NewsService } from './news/news.service';
import { FinanceController } from './finance/finance.controller';
import { FinanceService } from './finance/finance.service';
import { InternetController } from './internet/internet.controller';
import { InternetService } from './internet/internet.service';

@Module({
    imports: [],
    controllers: [NewsController, FinanceController, InternetController], // 注册controller
    providers: [NewsService, FinanceService, InternetService], // 注册 service
})

export class AppModule {
}
